#ifndef MY_RENDER_HANDLER
#define MY_RENDER_HANDLER
#include <thread>
#include <mutex>
#include"../drawer/screen.hpp"
#include"../object/world.hpp"
#include"../drawer/raster.hpp"

namespace handler{


    template<typename worldType>
    void MainHandler(drawer::Screen& screen,std::mutex& screen_mutex,worldType& world);


    

    // 主循环的处理函数
    template<typename worldType>
    void AllSonHandler(drawer::Screen& screen,worldType& world);

    template<>
    void AllSonHandler<object::World>(drawer::Screen& screen,object::World& world);

    template<>
    void AllSonHandler<object::ColorWorld>(drawer::Screen& screen,object::ColorWorld& world);







}

#endif